<template>
	<view class="qq">
		<view class="logo">

		</view>
		<view class="infos">
			<image class="logo1" src="https://tb.wuyouzhuan888.com/applet-icon/icon001.png" mode="">
			</image>

			<view class="tit">
				达到今日上限
			</view>
			<view class="desc">
				{{content}}
			</view>
			<view v-if="type==1" @click="handleClick()" class="btn">
				我知道了
			</view>
			<view v-else class="btnGroup">
				<view @click="handleClick()" class="btn cancle">
					取消
				</view>
				<view @click="clickVip()" class="btn">
					开通会员
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: [
			'type',
			'content',
		],
		data() {
			return {

			}
		},
		methods: {
			handleClick() {
				this.$emit('closeDk')
			},
			// 点击会员
			clickVip() {
				// 点击会员
				this.$emit('clickVip')
			},
		}
	}
</script>

<style lang="scss" scoped>
	.qq {
		position: relative;

		.btnGroup {
			display: flex;
			align-items: center;
			justify-content: space-between;

			.cancle {

				background: #2F336B !important;
			}

			.cancle::after {
				border: none !important;
			}
		}

		width: 638rpx;
		
		.infos {
			padding-bottom: 44rpx;
			border-radius: 20rpx;
			// padding: 120rpx 0 0;
			background: linear-gradient(180deg, #373C5F 0%, #242234 100%);

			.tit {
				text-align: center;
				font-size: 44rpx;
				font-family: HYQiHei-45S, HYQiHei;
				font-weight: normal;
				line-height: 52rpx;
				// text-shadow: 0px 2px 0px rgba(28,29,53,0.42);
				background: linear-gradient(180deg, #FFE4BB 0%, #FFFFFF 30%, #F4F2FF 42%, #F0DD98 100%);
				-webkit-background-clip: text;
				-webkit-text-fill-color: transparent;
			}

			.desc {
				padding: 50rpx 45rpx 109rpx;
				font-size: 30rpx;
				font-family: PingFang SC-Light, PingFang SC;
				font-weight: 300;
				color: #FFFFFF;
			}

			.btn {

				background: linear-gradient(to right, rgba(70, 89, 255, 1), rgba(161, 129, 255, 1));
				width: 263rpx;
				height: 80rpx;
				border-radius: 70rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				font-size: 34rpx;
				font-family: PingFang HK-Light, PingFang HK;
				font-weight: 300;
				color: #FFFFFF;
				margin: 0 auto;

			}
		}

		.logo1 {
			// display: block;
			width: 272rpx;
			height: 210rpx;
			margin: -105rpx auto 0 194rpx;

		}

		.logo {
			// position: absolute;
			width: 272rpx;
			height: 96rpx;
			// top: -132rpx;
			// left: 50%;
			// margin-left: -128rpx;
		}

	}
</style>